package com.ruoyi.shenji.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.entity.SysDept;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@TableName("tableData")
public class TableData {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("parent_id")
    private Integer parentId;

    @TableField("role_key")
    private String roleKey;

    @TableField("ancestors")
    private String ancestors;

    @TableField("abbrev")
    private String abbrev;

    public TableData() {
    }
    public TableData(String name, Integer parentId, String roleKey,String abbrev) {
        this.name = name;
        this.parentId = parentId;
        this.roleKey = roleKey;
        this.abbrev = abbrev;
    }
}
